﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>

<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style>
    .button-style {
	        display: inline-block;
	        margin-top: 30px;
	        padding: 7px 30px;
	        background: #1B2024;
	        border-radius: 5px;
	
	        letter-spacing: 1px;
	        text-decoration: none;
	        text-transform: uppercase;
	        font-family: 'Oswald', sans-serif;
	        font-weight: 300;
	        font-size: 16px;
	        color: #FFFFFF;
	        cursor: pointer;
	
        }

        .button-style a {
	        letter-spacing: 1px;
	        text-decoration: none;
	        text-transform: uppercase;
	        font-family: 'Oswald', sans-serif;
	        font-weight: 300;
	        font-size: 16px;
	        color: #FFFFFF;
        }
    
    </style>
</head>
<body>
     <table style="width: 583px">
        <tr>
            <td>
               <form id="form1" runat="server">
                <div>
                        <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" 
                        Font-Size="8pt" InteractiveDeviceInfos="(Colección)" SizeToReportContent="True" 
                        WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="584px">
                        <LocalReport ReportPath="Reportes\Reporte2.rdlc">
                            <DataSources>
                                <rsweb:ReportDataSource DataSourceId="odsReporte2" Name="dsReporte2" />
                            </DataSources>
                        </LocalReport>
                    </rsweb:ReportViewer>
    
                </div>
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                <asp:ObjectDataSource ID="odsReporte2" runat="server" 
                    OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" 
                    TypeName="SGTD.SGTDdsReporte2TableAdapters.FichaTDoc_reporte_PATableAdapter">
                    <SelectParameters>
                        <asp:SessionParameter Name="idarea" SessionField="sidarea" Type="Int32" />
                        <asp:SessionParameter DefaultValue="" Name="fechaini" SessionField="sfechaini" 
                            Type="DateTime" />
                        <asp:SessionParameter DefaultValue="" Name="fechafin" SessionField="sfechafin" 
                            Type="DateTime" />
                        <asp:SessionParameter Name="estado" SessionField="sestado" Type="String" />
                        <asp:SessionParameter Name="opc" SessionField="sopcion" Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
                </form>
            </td>
        </tr>
        <tr>
            <td align="right">
            <input id="Button1"  type="button" value="Imprimir" onclick="window.print(); return false;" class="button-style" /></td>
        </tr>
    </table>
</body>
</html>
